home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
crt
/
sun3.md
/
setjmp.s
< prev
next >
Wrap
Text File
|
1989-09-24
|
478b
|
35 lines
|
| setjmp.s
|
.text
.globl _setjmp
_setjmp:
pea 0:w
jsr _sigblock
addql #4,sp
movl sp@(4),a0
movl sp@(0),a0@
movl d0,a0@(4)
clrl a0@(8)
moveml d2/d3/d4/d5/d6/d7/a2/a3/a4/a5/a6/a7,a0@(0xc)
clrl d0
rts
.globl _longjmp
_longjmp:
movl sp@(4),a0
movl a0@(4),sp@-
jsr _sigsetmask
addql #4,sp
movl sp@(4),a0
movl sp@(8),d0
bne 1f
moveq #1,d0
1:
movl a0@,a1
moveml a0@(0xc),d2/d3/d4/d5/d6/d7/a2/a3/a4/a5/a6/a7
addql #4,sp
jmp a1@